<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ page import="com.bobamrz.domain.DocType, com.bobamrz.domain.DocCatalog, java.util.Set, java.util.List;" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
	<script type="text/javascript">
		var availableDocTypes = <%out.print(request.getAttribute("availableDocTypes"));%>;
	</script>
	<meta http-equiv="content-type" content="text/html; charset=utf-8">
	<title>Document</title>
	
	<link rel="stylesheet" type="text/css" href="css/mainPage.css">
	
	<script src="js/jquery-1.10.1.js"></script>
	<script src="js/mainPage.js"></script>
</head>
<body>
<div id="container">

<div id="header" class="frame">
<h1>Header</h1>
<p>hello, <%out.print(request.getAttribute("username"));%></p>
<a href="logout">logout</a>
</div>

<div id="menu" class="frame">
<h2>Menu</h2>
<a href="clipboard">Clipboard</a></br>
catalog :<br/>
<span id="catalog" class="bold">Some catalog</span><br/><br/>

<% 
String catalogsHtml = (String)request.getAttribute("catalogsHtml");
out.println(catalogsHtml);
%>

</div>

<div id="info" class="frame">
	<% 
	String pageToLoad = (String)request.getAttribute("pageToLoad");
	%>
	<jsp:include page='<%=pageToLoad%>' />
</div>
<div id="footer" class="frame">
footer



</div>
</div>
</body>
</html>